import background =require('./backgrould');

abstract class Platform {
    bg;
    public button;
    public tap = false;
    public params = {
        devid: 6, devtype: 2, appid: "com.taoqi001.mp_marmot",
        appver: 301, token: "8bba0bcbdd4b6a768c90aa3cf4ea7283"
    }; 
    
    abstract init(bg);

    //from js to java/oc
    isFullScreen(): boolean {
        return true;
    }

    exchangeStar() {
    
    }

    tokenExpire() {

    }

    requestErr() { }

    loadSuccess() { }

    loadFail() { }

    enableBGM(): boolean {
        return true;
    }

    enableSound(): boolean {
        return true;
    }


    wxShareMessage(obj,callback: Function){
        
    }

    setBGM() { }//ios特有方法

    
    //from java/oc to js
    refreshStar() {

        this.bg.refreCoinClick();
    
    }

    exit(){ }


    getWeXinToken(callback: Function){

    }

    getWeXinUserInfo(callUser: Function){
        
    }

    setStorage(obj: Object) {
      
    }

    getStorage(key): any {
       
    }

    checkSession() { };//检查token
}
export = Platform; 

